<div class="bg_greenyellow round_10 quarter shadow_in_0">
    <div class="dbox2">
    <? echo $this->form?>
    </div>
</div>

<div class="twothird ">
    <? if(empty ($this->paginator)){ ?>
    
    <div class="warning"><p>Nie odnaleziono aukcji !</p><div></div></div>
    
    <? } else { ?>
    
<table class="datalist" width="100%">
   <thead>
      <tr>
         <th  class="c1">Typ</th>
         <th  class="c2" scope="col">Nazwa</th>
         <th  class="c3" scope="col">Ofert</th>
         <th  class="c4" scope="col">Koniec</th>
        
      </tr>
   </thead>
   <tfoot>
      <tr>
         <th>&nbsp;</th>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
      </tr>
   </tfoot>
   <tbody>
       <? foreach($this->paginator as $auction) {?>
      <tr>     
          <td><div class="type <? 
                                echo $auction->getHiddenOffers() ? 'one' : 'two';
                                ?>"></div></td>
         <td style="text-align: center"><a href ="<?php echo $this->url(array('controller'=>'auctions','action'=>'details','id'=>$auction->getAuction_id()),null,true); ?>"><? echo$auction->getTitle(); ?></a></td>
         <td style="text-align: center"><? echo $auction->countOffers(); ?></td>
         <td style="text-align: center"><? echo $this->timeToEnd($auction->getEndTime()); ?></br></td>
      </tr> 
      <? } ?>
   </tbody>
</table>  
    
    <?php echo $this->paginationControl($this->paginator,
                                    'Sliding',
                                    'utility/my_paginator_helper.phtml'); ?>
    
    <? } ?>
     
     
</div>